-- GENERATED SPELL FOR [Counselor Talbot] --


function spell0_25301(pUnit, Event) --@Soul Blast,n/a--
pUnit:FullCastSpellOnTarget(50992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25301', 525, 1)
end

function spell1_25301(pUnit, Event) --@Soul Deflection,n/a--
pUnit:FullCastSpellOnTarget(51009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25301', 6269, 1)
end

function spell2_25301(pUnit, Event) --@Vampiric Bolt,n/a--
pUnit:FullCastSpellOnTarget(51016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25301', 2500, 1)
end

function Sorts_25301(pUnit, Event)
local choix_sorts_25301 = math.random(0, 2)
if choix_sorts_25301 == 0 then
pUnit:RegisterEvent('spell0_25301', 1, 1)
end
if choix_sorts_25301 == 1 then
pUnit:RegisterEvent('spell1_25301', 1, 1)
end
if choix_sorts_25301 == 2 then
pUnit:RegisterEvent('spell2_25301', 1, 1)
end
end

function mob25301_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25301', math.random(1500, 3000), 1)
end

function mob25301_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25301_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25301_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25301, 1, 'mob25301_Action')
RegisterUnitEvent(25301, 2, 'mob25301_Leave')
RegisterUnitEvent(25301, 3, 'mob25301_Kill')
RegisterUnitEvent(25301, 4, 'mob25301_Die')
